package com.medata.service.impl;

import com.medata.dataObject.Templatefields;
import com.medata.repository.TemplatefieldsRepository;
import com.medata.service.TemplatefieldsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：zb
 * @date ：Created in 2019/5/9 0009 15:38
 * @description：
 */
@Service
public class TemplatefieldsServiceImpl implements TemplatefieldsService {
    @Autowired
    TemplatefieldsRepository templatefieldsRepository;

    @Override
    public List<Templatefields> getByDbid(Integer dbid) {
        List<Templatefields> temps = templatefieldsRepository.getByDbid(dbid);
        return temps;
    }

    @Override
    public List<Templatefields> findByRefId(Integer refId) {
        List<Templatefields> templatefields = templatefieldsRepository.findByRefId(refId);
        return templatefields;
    }

    @Override
    public List<Templatefields> getByDbidOrderBySequence(Integer dbid) {
        return templatefieldsRepository.getByDbidOrderBySequence(dbid);
    }

    @Override
    public List<Templatefields> getByRankREFID(String id) {
        return templatefieldsRepository.getByRankREFID(id);
    }
}
